/*背景*/
body {
    font-family: Arial, sans-serif;
    background-color: lightblue; 
}
/* 浮窗 */
#app 
{
    background-color: white;
    width: 400px;
    margin: 20px auto; 
    padding: 20px;
    border-radius: 30px;/*设置边角圆弧 */

}
#taskInput 
{
    width: 71.5%;
    padding: 10px;
    margin-right: 10px;
}
button 
{
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;/*边框去掉 */
    border-radius: 5px;/*文字有弧度*/
}

ul 
{
    list-style: none;
    padding: 0;
}
/*设置按钮之间的间隔*/
li {
    /*在水平方向上两端对齐，在垂直方向上居中对齐 */
    display: flex;/*弹性容器*/
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

button.deleteButton {
    background-color: red;
}

button.priorityButton 
{
    background-color: green;
    margin-right: 10px;
}

button.completeButton 
{
    background-color: blue;
    margin-left: 10px;
}

.completed 
{
    text-decoration: line-through;
    background-color: yellow;
    position: relative;
}
/*设置删除时的动画，添加删除线*/
.completed::after 
{
    content: "";/*下划线的temp*/
    position: absolute;/*找到删除的文字的绝对定位*/
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: black;
    animation: lineAnimation 0.5s forwards;
}

@keyframes lineAnimation 
{
    to {
        width: 100%;
    }
}

.priority 
{
    background-color: lightpink;
}

h4 
{
    text-align: center;
    color: black;
}
h1 
{
    font-size: 50px;
    color: red;
}

.right
{
    position: fixed;
    right: 90%;
    top: 15%;
    transform: translate(50%, -50%);
    z-index: -1;
  }

  .left
  {
    position: fixed;
    left: 75%;
    top: 15%;
    transform: translate(50%, -50%);
    z-index: -1;
  }
  /* .left-gif 
  {
    position: fixed;
    right: 90%;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: -1;
  } */
     /*
     
.right-gif 
  {
    position: fixed;
    right: 90%;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: -1;
  } */